package com.ql.gamelogm.dao;



import com.ql.gamelogm.entities.Manager;
import com.ql.gamelogm.entities.Right;

import java.util.List;

public interface ManagerDao {
    //查找所有管理员信息
    public List<Manager> findAllManager();
    //id为管理员表的主键
    public List<Manager> findManagerByID(String id);
    /*修改密码*/
    public boolean updatePwd(String pwd,String id);
    /*重置密码*/
    public boolean updatenPwd(String pwd,String email);
    //添加管理员
    public boolean addManager(Manager manager);
    //修改管理员信息
    public boolean updateManager(Manager manager,String id);
    //删除管理员
    public boolean deleteManager(String id);
    public List<Right> findAllManagerRight();
    public List<Right> findRightById(String id);
    public boolean addRight(Right right);
    public boolean updateRight(Right right,String id);
    public boolean deleteRightById(String id);
}
